<?php
/**
 * Created by PhpStorm.
 * User: MrHung
 * Date: 7/2/14
 * Time: 4:37 PM
 */
session_start();
error_reporting(0);

if (
    !empty( $_POST['id'] )
    && isset ( $_POST['id'] )
) {
      $_POST['id']    = is_numeric($_POST['id']) ? $_POST['id'] : die();


        //<---  * REQUIRE * ----->
        require_once('../../class_ajax_request/classAjaxAdmin.php');
        include_once('../../application/functions.php');
        include_once('../../application/DataConfig.php');

        //INSTANCE
        $obj         = new AjaxRequestAdmin();


        //UPDATE BD
        $res = $obj->deleteCategory();

        if( $res == 1 ) {
            echo 'ok';
        }

}// END IF SESSION ACTIVE